<?php if (!defined('THINK_PATH')) exit();?>

<table class="table">
					
					<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?><tr class="success">

       			 		<td>选择模型：</td>
       			 		<td>
       			 			<input type="hidden" name='cid' value="<?php echo ($c["cid"]); ?>">
       			 			<select name="mid" class="form-control">
       			 				
								<?php if(is_array($md)): foreach($md as $key=>$vo): ?><option value="<?php echo ($vo["mid"]); ?>" <?php if($c['mid'] == $vo['mid']): ?>selected=""<?php endif; ?>><?php echo ($vo["m_name"]); ?></option><?php endforeach; endif; ?>	
       			 			</select>
       			 		</td>
       			 	</tr>
       			 	<tr class="warning">
						<td>上级栏目：</td>
						<td>
							<select name="pid" class="form-control">
       			 					<?php if($c['pid'] == 0): ?><option value="<?php echo ($c["pid"]); ?>" selected=""><?php echo ($c["cname"]); ?></option>
       			 					<?php else: ?>
       			 					<?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$g): $mod = ($i % 2 );++$i;?><option value="<?php echo ($g["cid"]); ?>"   <?php if($c['pid'] == $g['cid']): ?>selected=""<?php endif; ?> ><?php echo ($g["cname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; endif; ?>
							</select>
						</td>
					</tr>
			
					<tr class="success">
						<td>栏目名称：</td>
						<td>
							<input type="text" name="cname" class="form-control" value="<?php echo ($c["cname"]); ?>">
						</td>
					</tr>
					<tr class="warning">
						<td>栏目关键字：</td>
						<td>
							<input type="text" name="c_keywords" class="form-control" value="<?php echo ($c["c_keywords"]); ?>">
						</td>
					</tr>
					<tr class="success">
						<td>栏目描述：</td>
						<td>
							<textarea name="c_description" class="form-control" rows="3"><?php echo ($c["c_description"]); ?></textarea>
						</td>
					</tr>
					<tr class="success">
						<td>栏目类型：</td>
						<td style="color:#555; font-weight: 400; font-size:12px; ">

							<label ><input type="radio" <?php if($c['tpl_style'] == 1): ?>checked=''<?php endif; ?> name='tpl_style' value='1'>普通栏目</label>
							<label ><input type="radio" <?php if($c['tpl_style'] == 2): ?>checked=''<?php endif; ?> name='tpl_style' value='2'>频道封面</label>
							<label ><input type="radio" <?php if($c['tpl_style'] == 3): ?>checked=''<?php endif; ?> name='tpl_style' value='3'>外部链接</label>
							<label ><input type="radio" <?php if($c['tpl_style'] == 4): ?>checked=''<?php endif; ?> name='tpl_style' value='4'>单页面</label>
						</td>

					</tr>
						<td>跳转地址：</td>
   			 			<td>
       			 			<input type="text" name="url" value="<?php echo ($c["url"]); ?>" class="form-control" >
       			 		</td>
   			 		</tr>
					<tr class="warning">
						<td>选择封面模板：</td>
						<td>
							<select name="inde_tpl" class="form-control">
       			 				<?php if(is_array($tpl)): $i = 0; $__LIST__ = $tpl;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$t): $mod = ($i % 2 );++$i;?><option value="<?php echo ($t); ?>" <?php if($t == $c['index_tpl']): ?>selected=""<?php endif; ?>><?php echo ($t); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</td>
					</tr>
					<tr class="success">
						<td>选择列表页模板：</td>
						<td>
							<select name="list_tpl"  class="form-control">
       			 				<?php if(is_array($tpl)): $i = 0; $__LIST__ = $tpl;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$t): $mod = ($i % 2 );++$i;?><option value="<?php echo ($t); ?>" <?php if($t == $c['list_tpl']): ?>selected=""<?php endif; ?>><?php echo ($t); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</td>
					</tr>
					<tr class="warning">
						<td>选择文章页模板：</td>
						<td>
							<select name="acr_tpl" class="form-control">
       			 				<?php if(is_array($tpl)): $i = 0; $__LIST__ = $tpl;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$t): $mod = ($i % 2 );++$i;?><option value="<?php echo ($t); ?>" <?php if($t == $c['acr_tpl']): ?>selected=""<?php endif; ?>><?php echo ($t); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
							</select>
						</td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>
       			 </table>